package projeto1;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.JButton;

import java.awt.SystemColor;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;



public class Cadastro extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Cadastro frame = new Cadastro();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Cadastro() {
		setTitle("TRANSF\u00C1CIL - Cadastrar Informa\u00E7\u00F5es");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 673, 378);
		contentPane = new JPanel();
		contentPane.setBackground(SystemColor.menu);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblCadastroDeInformaes = new JLabel("Cadastro de informa\u00E7\u00F5es:");
		lblCadastroDeInformaes.setForeground(Color.BLACK);
		lblCadastroDeInformaes.setFont(new Font("Arial Black", Font.BOLD, 20));
		lblCadastroDeInformaes.setBounds(10, 30, 334, 18);
		contentPane.add(lblCadastroDeInformaes);
		
		JButton btnCadastroLinhaDe = new JButton("Cadastro linha de \u00F4nibus");
		btnCadastroLinhaDe.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				CadastroLinhasOnibus cadastro5 = new CadastroLinhasOnibus();
				cadastro5.setVisible(true);
				Cadastro.this.dispose(); 
				
				
				
				
				
			}
		});
		btnCadastroLinhaDe.setToolTipText("Cadastrar Linhas de \u00F4nibus");
		btnCadastroLinhaDe.setForeground(Color.BLACK);
		btnCadastroLinhaDe.setFont(new Font("Arial", Font.PLAIN, 15));
		btnCadastroLinhaDe.setBounds(423, 101, 224, 27);
		contentPane.add(btnCadastroLinhaDe);
		
		JButton btnCadastroLogradouro = new JButton("Cadastro logradouro");
		btnCadastroLogradouro.setToolTipText("Cadastrar Logradouros");
		btnCadastroLogradouro.setForeground(Color.BLACK);
		btnCadastroLogradouro.setFont(new Font("Arial", Font.PLAIN, 15));
		btnCadastroLogradouro.setBounds(423, 170, 224, 27);
		
		btnCadastroLogradouro.addActionListener(new ActionListener() {
			//Chama cadastrar logradouro
			public void actionPerformed(ActionEvent e) {
				CadastroLogradouro cadastro = new CadastroLogradouro ();
				cadastro.setVisible(true);
				Cadastro.this.dispose(); 
			}
		});
		
		
		
		contentPane.add(btnCadastroLogradouro);
		
		JButton btnNewButton = new JButton("GerenciarAdministradores");
		btnNewButton.setToolTipText("Gerenciar Administrados do sistema");
		btnNewButton.setForeground(Color.BLACK);
		
		btnNewButton.addActionListener(new ActionListener() {
			//Chama login
			public void actionPerformed(ActionEvent e) {
				GerenciarAdm gerenciar = new GerenciarAdm();
				gerenciar.setVisible(true);
				Cadastro.this.dispose(); 
			}
		});
		
		btnNewButton.setFont(new Font("Arial", Font.BOLD, 11));
		btnNewButton.setBounds(371, 304, 276, 23);
		contentPane.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton(" Anterior");
		btnNewButton_1.setToolTipText("Retornar para Login");
		
		
		btnNewButton_1.addActionListener(new ActionListener() {
			//Chama login adm
			public void actionPerformed(ActionEvent e) {
				LoginAdm login = new LoginAdm();
				login.setVisible(true);
				Cadastro.this.dispose(); 
			}
		});
		
		btnNewButton_1.setFont(new Font("Arial", Font.PLAIN, 11));
		btnNewButton_1.setBounds(10, 304, 137, 23);
		contentPane.add(btnNewButton_1);
		
		JLabel lblCadastrarLinhasDe = new JLabel("CADASTRAR  LINHAS DE \u00D4NIBUS E LOGRADOUROS NO SISTEMA :");
		lblCadastrarLinhasDe.setFont(new Font("Arial", Font.PLAIN, 12));
		lblCadastrarLinhasDe.setBounds(10, 107, 613, 14);
		contentPane.add(lblCadastrarLinhasDe);
	}
}

